﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x020008C7 RID: 2247
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class HeadIconData : IMessage<HeadIconData>, IMessage, IEquatable<HeadIconData>, IDeepCloneable<HeadIconData>, IBufferMessage
	{
		// Token: 0x17001C7B RID: 7291
		// (get) Token: 0x060064E3 RID: 25827 RVA: 0x0010F0EB File Offset: 0x0010D2EB
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<HeadIconData> Parser
		{
			get
			{
				return HeadIconData._parser;
			}
		}

		// Token: 0x17001C7C RID: 7292
		// (get) Token: 0x060064E4 RID: 25828 RVA: 0x0010F0F2 File Offset: 0x0010D2F2
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return HeadIconDataReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x17001C7D RID: 7293
		// (get) Token: 0x060064E5 RID: 25829 RVA: 0x0010F104 File Offset: 0x0010D304
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return HeadIconData.Descriptor;
			}
		}

		// Token: 0x060064E6 RID: 25830 RVA: 0x0010F10B File Offset: 0x0010D30B
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public HeadIconData()
		{
		}

		// Token: 0x060064E7 RID: 25831 RVA: 0x0010F113 File Offset: 0x0010D313
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public HeadIconData(HeadIconData other) : this()
		{
			this.id_ = other.id_;
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x060064E8 RID: 25832 RVA: 0x0010F138 File Offset: 0x0010D338
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public HeadIconData Clone()
		{
			return new HeadIconData(this);
		}

		// Token: 0x17001C7E RID: 7294
		// (get) Token: 0x060064E9 RID: 25833 RVA: 0x0010F140 File Offset: 0x0010D340
		// (set) Token: 0x060064EA RID: 25834 RVA: 0x0010F148 File Offset: 0x0010D348
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint Id
		{
			get
			{
				return this.id_;
			}
			set
			{
				this.id_ = value;
			}
		}

		// Token: 0x060064EB RID: 25835 RVA: 0x0010F151 File Offset: 0x0010D351
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as HeadIconData);
		}

		// Token: 0x060064EC RID: 25836 RVA: 0x0010F15F File Offset: 0x0010D35F
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(HeadIconData other)
		{
			return other != null && (other == this || (this.Id == other.Id && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x060064ED RID: 25837 RVA: 0x0010F190 File Offset: 0x0010D390
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			if (this.Id != 0U)
			{
				num ^= this.Id.GetHashCode();
			}
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x060064EE RID: 25838 RVA: 0x0010F1CF File Offset: 0x0010D3CF
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x060064EF RID: 25839 RVA: 0x0010F1D7 File Offset: 0x0010D3D7
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x060064F0 RID: 25840 RVA: 0x0010F1E0 File Offset: 0x0010D3E0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.Id != 0U)
			{
				output.WriteRawTag(56);
				output.WriteUInt32(this.Id);
			}
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x060064F1 RID: 25841 RVA: 0x0010F214 File Offset: 0x0010D414
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			if (this.Id != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.Id);
			}
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x060064F2 RID: 25842 RVA: 0x0010F252 File Offset: 0x0010D452
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(HeadIconData other)
		{
			if (other == null)
			{
				return;
			}
			if (other.Id != 0U)
			{
				this.Id = other.Id;
			}
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x060064F3 RID: 25843 RVA: 0x0010F283 File Offset: 0x0010D483
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x060064F4 RID: 25844 RVA: 0x0010F28C File Offset: 0x0010D48C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num != 56U)
				{
					this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
				}
				else
				{
					this.Id = input.ReadUInt32();
				}
			}
		}

		// Token: 0x0400268A RID: 9866
		private static readonly MessageParser<HeadIconData> _parser = new MessageParser<HeadIconData>(() => new HeadIconData());

		// Token: 0x0400268B RID: 9867
		private UnknownFieldSet _unknownFields;

		// Token: 0x0400268C RID: 9868
		public const int IdFieldNumber = 7;

		// Token: 0x0400268D RID: 9869
		private uint id_;
	}
}
